home *** CD-ROM | disk | FTP | other *** search
/ PsL Monthly 1993 December / PSL Monthly Shareware CD-ROM (December 1993).iso / prgmming / dos / c / tcclib.exe / WINDOW.DOC < prev    next >
Encoding:
Text File  |  1989-02-11  |  2.3 KB  |  60 lines

  1. These routines were written by Chuck Jazdzewski of Borland International.
  2.  
  3. -------------------------------------------------------------------------
  4. makewindow
  5. -------------------------------------------------------------------------
  6. Function       Creates a window and makes it current
  7.  
  8. Syntax         windowtype *makewindow( int left, int top,
  9.                                        int right, int bottom,
  10.                                        unsigned char attrib,
  11.                                        unsigned char style, char *title )
  12.  
  13. Prototype      window.h
  14.  
  15. Remarks        The coordinates DO NOT include the border, so the largest
  16.                allowable window is 2,2 through 79,24.
  17.                Style:  0=non-graphics border
  18.                        1=single line border
  19.                        2=double line border
  20.                        3=single line horizontals, double line verticals
  21.  
  22. Return Value   on error, makewindow returns NULL and sets windowerr:
  23.                        1 = Out of Memory
  24.                        2 = Invalid Coordinates
  25.  
  26. -------------------------------------------------------------------------
  27. deletewindow
  28. -------------------------------------------------------------------------
  29. Function       Deletes a window from memory and the screen
  30.  
  31. Syntax         int deletewindow( windowtype *winptr )
  32.  
  33. Prototype in   window.h
  34.  
  35. Remarks        Only a current window may be deleted
  36.  
  37. Return Value   deletewindow return 0 on success, -1 on failure
  38.  
  39. -------------------------------------------------------------------------
  40. winwrite
  41. -------------------------------------------------------------------------
  42. Function       Writes a string to the specified window
  43.  
  44. Syntax         void winwrite( windowtype *winptr, char *string )
  45.  
  46. Prototype in   window.h
  47.  
  48. Remarks        If the speicified window is in the backgorund,
  49.                winwrite will write the string to memory so that it
  50.                will show up when the window is made current
  51.  
  52. -------------------------------------------------------------------------
  53. shiftwindow
  54. -------------------------------------------------------------------------
  55. Function       Makes a new window current
  56.  
  57. Syntax         int shiftwindow( windowtype *winptr )
  58.  
  59. Return Values  shiftwindow return 0 on success, 1 for Out of Memory
  60.